<%@ page contentType="text/html; charset=utf-8"%>
<html>
	<head>
		<title>修 改 密 码</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" media="all">
		
		<script type="text/javascript"
		src="<%=request.getContextPath()%>/js/jquery-1.5.1.min.js"></script>
	<script type="text/javascript">
		$(document).ready(
				function() {
				});
		function checkInfo() {
			clearErrorInfo();
			if ($("#oldpassword").val() == "") {
				$("#oldpassworderror").html("原密码不能为空！");
				$("#oldpassword").focus();
				return false;
			}
			if ($("#newpassword1").val() == "") {
				$("#newpassword1error").html("新密码不能为空！");
				$("#newpassword1").focus();
				return false;
			}
			if ($("#newpassword1").val() != $("#newpassword2").val()) {
				$("#newpassword1error").html("两次输入新密码不一致！");
				$("#newpassword1").val("");
				$("#newpassword2").val("");
				$("#newpassword1").focus();
				return false;
			}
			return true;
		}

		function clearErrorInfo() {
			$("#oldpassworderror").html("");
			$("#newpassword1error").html("");
		}
	</script>
	</head>
	<body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0"
		background="<%=request.getContextPath()%>/images/bg_right.gif" style="margin: 0px">
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			background="">
			<tr>
				<td height="299">
					<table width="85%" align="center" cellpadding=5 cellspacing=0>
						<tr>
							<td height="41" align=center>
								<span class="alert"><img src="<%=request.getContextPath()%>/images/mod.gif"
										alt="xdf " width="56" height="40"> 修 改 个 人 密 码</span>
							</td>
						</tr>
					</table>
					<form method="post" action="<%=request.getContextPath()%>/changePassword.html" onsubmit="return checkInfo();">
						<table width="85%" border=0 align="center" cellpadding="3"
							cellspacing="1" bgcolor="#cccccc">
							<tr>
								<td width="40%" class=list03>
									输入旧密码
								</td>
								<td width="60%" class=list02>
									<input type="password" id="oldpassword" name="oldpassword"
										style="height:20px;width:171px;" />
									<font id="oldpassworderror" color="red">${errInfo}
									</font>
								</td>
							</tr>
							<tr>
								<td width="40%" class=list03>
									输入新密码
								</td>
								<td class=list02>
									<input type="password" id="newpassword1" name="newpassword1"
										style="height:20px;width:171px;" />
									<font id="newpassword1error" color="red">
									</font>
							</tr>
							<tr>
								<td width="40%" class=list03>
									确认新密码
								</td>
								<td class=list02>
									<input type="password" id="newpassword2" name="newpassword2"
										style="height:20px;width:171px;" />
									<font id="newpassword2error" color="red">
									</font>
								</td>
							</tr>
						</table>
						<table width="85%" align="center" cellpadding=5 cellspacing=0>
							<tr>
								<td height="49" align=center>
									
										<input type="submit" value="修  改"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="button" value="重  置"/>
								
								</td>
							</tr>
						</table>
					</form>
				</td>
			</tr>
		</table>
	</body>
</html>